/* NEEDS comctl32.lib */

class Controls
{
public:
	static HWND hwndEditBar, hwndEditBar2, hwndToolBar;
	static HWND WINAPI CreateRebar(HWND hwndOwner);
	static void SetToolBarButton(int idButton, bool checked);
	static void EnableToolBarButton(int idButton, bool enabled);
	static void ReSetToolBar();
private:
	static HWND WINAPI CreateToolBar(HWND hWndParent);
};

class Control
{
public:
	virtual void Create(HWND HwndOwner, HMENU ID) = 0;
	HWND GetHandle() {return hwnd;}
	void SetHandle(HWND Hwnd) {hwnd = Hwnd; }
	HMENU GetID() {return id;}
protected:
	HWND hwnd;
	HMENU id;
};

class StatusBar : public Control
{
public:
	virtual void Create(HWND HwndOwner, HMENU ID);
	void SetParts(int nParts, LPINT lpParts);
	void SetText(int iPart, PTSTR szText, WPARAM uType);
	int GetHeight();
};

class ToolBar : public Control
{

};